﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;

namespace Fabs.Net
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public static MainWindow me;
        public MainWindow()
        {
            me = this;
            InitializeComponent();
#if !DEBUG
            DebugConsole.Visibility = Visibility.Collapsed; 
#endif
            Loaded += delegate
            {
                GCompiler machine = new GCompiler("SA");
                string Code = File.ReadAllText("D:/Test.txt");
                machine.Parse(Code);
                machine.Compile();
                machine.Save();
                machine.Run();
            };
        }
    }
}
